package com.bian.spring.annotation.test;

import com.bian.spring.annotation.cd.AClass;
import com.bian.spring.annotation.cd.BClass;
import com.bian.spring.annotation.config.MainConfigOfCD;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class IOCTest_CD {

	@Test
	public void test01(){
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfigOfCD.class);

		AClass aBean = applicationContext.getBean(AClass.class);
		BClass bBean = applicationContext.getBean(BClass.class);

		applicationContext.close();
	}

}
